import datetime

class Homework:
    def __init__(self,
                 homeworkID: int = None,
                 content: str = None,
                 time: datetime = None,
                 file_path: str = None,
                 file_size: int = None,
                 userID: str = None):
        self.homeworkID = homeworkID
        self.content = content
        self.time = time
        self.file_path = file_path
        self.file_size = file_size
        self.userID = userID

    def to_string(self):
        return "homeworkID: {}, content: {}, time: {}, file_path: {}, file_size: {}, userID: {}".format(
            self.homeworkID, self.content, self.time, self.file_path, self.file_size, self.userID)
